
public class Hero {
	String name;
	String type;
	int lifeValue;

	public void method1() {
		System.out.println(type + "类");
		System.out.println("我是type" + ",我的基本信息如下：");
		System.out.println("名字：" + name + ",生命值：" + lifeValue);
		System.out.println("-----------------------------------------------------------------------");
	}

	public static void main(String[] args) {
		Hero newHero = new Hero();
		newHero.name = "李小侠";
		newHero.type = "英雄";
		newHero.lifeValue = 800;
		newHero.method1();
		Weapons wea = new Weapons();
		wea.type = "武器";
		wea.name = "死神镰刀";
		wea.Damage = 100;
		wea.method2();
		Monster mon = new Monster();
		mon.name = "小龟";
		mon.type = "潜水型";
		mon.type1 = "怪物";
		mon.lifeValue = 300;
		mon.method3();
	}
}
